package main //MARK 必须这么写
//会去自己设置的GOPATH 和 安装目录GOROOT搜索这些表
import ( //MARK 以包為單位導入
	"github.com/goinaction/code/chapter2/sample/search"

	//MARK 标准库这么导
	"log"
	"os"

	_ "github.com/goinaction/code/chapter2/sample/matchers" //MARK 只运行里面的init 不用使用;   go有检查,声明了不用会报错
)

// init is called prior to main.
func init() {
	// Change the device for logging to stdout.
	log.SetOutput(os.Stdout)
}

// main is the entry point for the program.
func main() {
	// Perform the search for the specified term.
	search.Run("president")
}
